<!DOCTYPE html>
<html>
<head>
<title>管理员列表</title>
<#include "/header.html">
</head>
<body>
<div id="zcapp" v-cloak>
	<div v-show="zcshowList">
		<div class="grid-btn">
			<#if shiro.hasPermission("zc:zcuser:zcquery")>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="zc.zcusername" @keyup.enter="zcquery" placeholder="用户名">
			</div>
			<a class="btn btn-default" @click="zcquery">查询</a>
		    </#if>
			<#if shiro.hasPermission("zc:zcuser:zcadd")>
			<a class="btn btn-primary" @click="zcadd"><i class="fa fa-plus"></i>&nbsp;新增</a>
		    </#if>
		    <#if shiro.hasPermission("zc:zcuser:zcupdate")>
			<a class="btn btn-primary" @click="zcupdate"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
	        </#if>
	        <#if shiro.hasPermission("zc:zcuser:zcdel")>
		    <a class="btn btn-primary" @click="zcdel"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
            </#if>
        </div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>


	<div v-show="!zcshowList" class="panel panel-default">
		<div class="panel-heading">{{zctitle}}</div>
		<form class="form-horizontal">
			<div class="form-group">
				<div class="col-sm-2 control-label">用户名</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="zcuser.username" placeholder="登录账号"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">工号</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="zcuser.num" placeholder="工号"/>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-2 control-label">政治面貌</div>
				<div class="col-sm-10">
					<select  v-model="zcuser.zzmm"    class="form-control" >
						<option value="" selected>选择类别</option>
						<option v-for="(item,index) in zmoptions" :key="index"  :value='item.id' >{{item.value}}</option>
					</select>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-2 control-label">职称</div>
				<div class="col-sm-10">
					<select  v-model="zcuser.zc"    class="form-control" >
						<option value="" selected>选择类别</option>
						<option v-for="(item,index) in zcoptions" :key="index"  :value='item.id' >{{item.value}}</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">密码</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" value="123456" v-model="zcuser.password" placeholder="密码"/>
				</div>
			</div>



			<div class="form-group">
				<div class="col-sm-2 control-label">状态</div>
				<label class="radio-inline">
					<input type="radio" name="status" value="0" v-model="zcuser.status"/> 禁用
				</label>
				<label class="radio-inline">
					<input type="radio" name="status" value="1" v-model="zcuser.status"/> 正常
				</label>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="zcsaveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>
<script src="${request.contextPath}/statics/js/modules/zhangcong/zcuser.js?_${.now?long}"></script>
</body>
</html>